<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>倒序输出</title>
	<script>
		var n = parseInt(prompt('输入一个三位数'));
        var a,b,c;
        a = (n - (n % 100)) / 100;
        c = n % 10; 
        b = (n % 100 - c) / 10;  

        var m = c * 100 + b * 10 + a;
        console.log(m);
	</script>
</head>
<body>
	
</body>
</html>